let numbers = [1, 2, 3, 4];
let sum = numbers.reduce((accumulator, currentValue) => accumulator + currentValue, 0);
console.log(sum); // 输出: 10
let nested = [1, [2,[4,6] ,3], [4, [5, 6]]];